﻿<?xml version="1.0" encoding="utf-8" ?>
<routes>
  <!--blog routes-->
  <add name="Blog_Default" url="{locale}/Blog/{controller}/{action}">
    <area>Blog</area>
    <namespace>Xenta.Web.Areas.Blog.Controllers</namespace>
    <defaults>
      <locale>en-US</locale>
      <action>Index</action>
      <controller>Post</controller>
    </defaults>
  </add>
  <!--catalog routes-->
  <add name="Catalog_Default" url="{locale}/Catalog/{controller}/{action}">
    <area>Catalog</area>
    <namespace>Xenta.Web.Areas.Catalog.Controllers</namespace>
    <defaults>
      <locale>en-US</locale>
      <action>Index</action>
      <controller>Catalog</controller>
    </defaults>
  </add>
  <!--forum routes-->
  <add name="Forum_Default" url="{locale}/Forum/{controller}/{action}">
    <area>Forum</area>
    <namespace>Xenta.Web.Areas.Forum.Controllers</namespace>
    <defaults>
      <locale>en-US</locale>
      <action>Index</action>
      <controller>Forum</controller>
    </defaults>
  </add>
  <!--store routes-->
  <add name="Store_Default" url="{locale}/Store/{controller}/{action}">
    <area>Store</area>
    <namespace>Xenta.Web.Areas.Store.Controllers</namespace>
    <defaults>
      <locale>en-US</locale>
      <action>Index</action>
      <controller>Item</controller>
    </defaults>
  </add>
  <!--wizard routes-->
  <add name="Wizard_Payment_IPN" url="{locale}/Wizard/Payment/IPN/{handlerID}">
    <area>Wizard</area>
    <namespace>Xenta.Web.Areas.Store.Controllers</namespace>
    <defaults>
      <locale>en-US</locale>
      <action>IPN</action>
      <controller>Payment</controller>
      <area>Wizard</area>
    </defaults>
  </add>
  <add name="Wizard_Default" url="{locale}/Wizard/{controller}/{action}">
    <defaults>
      <locale>en-US</locale>
    </defaults>
    <area>Wizard</area>
    <namespace>Xenta.Web.Areas.Wizard.Controllers</namespace>
  </add>
  <!--general routes-->
  <add name="Static" url="{locale}/Page/{action}">
    <namespace>Xenta.Web.Controllers</namespace>
    <defaults>
      <locale>en-US</locale>
      <controller>Static</controller>
    </defaults>
  </add>
  <add name="Default" url="{locale}/{controller}/{action}">
    <namespace>Xenta.Web.Controllers</namespace>
    <defaults>
      <locale>en-US</locale>
      <action>Home</action>
      <controller>Static</controller>
    </defaults>
  </add>
  <!--ignore routes-->
  <add url="{resource}.axd/{*pathInfo}">
    <handler>System.Web.Routing.StopRoutingHandler, System.Web.Routing, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35</handler>
  </add>
  <add url="{resource}.ashx/{*pathInfo}">
    <handler>System.Web.Routing.StopRoutingHandler, System.Web.Routing, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35</handler>
  </add>
  <add url="favicon.ico">
    <handler>System.Web.Routing.StopRoutingHandler, System.Web.Routing, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35</handler>
  </add>
</routes>